package org.example.intercptor;

import feign.RequestInterceptor;
import feign.RequestTemplate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class CustomFeignIntorceptor implements RequestInterceptor {
    Logger logger= LoggerFactory.getLogger(this.getClass());
    @Override
    public void apply(RequestTemplate requestTemplate) {
        requestTemplate.header( "token","123456");
        //requestTemplate.query("id","100");
        //requestTemplate.uri("/9");
        //requestTemplate.body("");
        logger.info("feign拦截器");

    }
}
